//
//  PigTypeListModel.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/16.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "PigTypeListModel.h"

@implementation PigTypeListModel

- (NSString *)description
{
    return [NSString yy_modelDescription];
}


+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{
             @"list" : [PigTypeModel class]
             };
}

- (CGFloat)price{
    if (!_price) {
        _price = 0.00;
    }
    return _price;
}


@end



@implementation PigTypeModel

- (NSString *)description
{
    return [NSString yy_modelDescription];
}

+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{
             @"list" : [PigTypeItem class]
             };
}



- (NSInteger)totalNumber{
    if (!_totalNumber) {
        _totalNumber = 0;
    }
    return _totalNumber;
}

- (BOOL)isChicked{
    if (!_isChicked) {
        _isChicked = NO;
    }
    return _isChicked;
}


@end



@implementation PigTypeItem

- (NSString *)description
{
    return [NSString yy_modelDescription];
}

- (BOOL)isChicked{
    if (!_isChicked) {
        _isChicked = NO;
    }
    return _isChicked;
}

- (NSString *)desc
{
    if (!_desc) {
        _desc = @"是一种轻量级的数据交换格式。它基于 ECMAScript (欧洲计算机协会制定的js规范)的一个子集";
    }
    return _desc;
}


@end
